package com.yiqi.news.wxapi;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.jess.arms.utils.LogUtils;

import org.simple.eventbus.EventBus;


public class WXPayEntryActivity extends Activity {

    private static final String TAG = "WXPayEntryActivity";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        onIntent(getIntent());
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        setIntent(intent);
        onIntent(getIntent());
    }

    void onIntent(Intent intent) {
        LogUtils.warnInfo("=====>" + ((intent == null || intent.getExtras() == null) ? "" : intent.getExtras().toString()));

        EventBus.getDefault().post(new WXPayEvent(intent));
        finish();
    }


}